<?php

namespace App\Observers;

use App\Http\Model\User;

class UserObserver extends BasicObserver
{
    public function created(User $user)
    {
        $mess = "用户<el-button type='text' style='color: dodgerblue'>{$user->username}</el-button>成功注册了系统";
        $this->log['record'] = $mess;
        $this->logInfo();
    }
}
